package com.aioething.iot.beans;

public class UserContext {
    private static ThreadLocal<LoginUser> threadLocal = new ThreadLocal<LoginUser>();

    public static LoginUser get() {
        return threadLocal.get();
    }

    public static void put(LoginUser user) {
        threadLocal.set(user);
    }

    public static void remove() {
        threadLocal.remove();
    }

}
